package work4;

/**
 * 士兵类
 */

public class Soldier extends Role {
    public Soldier(String name, int level, String selflntroduce) {
        super(name, level, selflntroduce);
    }
    public void so(){
        System.out.println("我是"+this.getName()+
                "我的等级是"+this.getLevel()+getSelflntroduce());
    }
    public  void defend(Role role){
        System.out.println("发动技能：圣盾抵抗. 防御了"+role.getName()+"的攻击");
    }

}
